import reflex as rx 
import pandas as pd
import polars as pl
from datetime import date, timedelta
from db import query_month_journal



start_date = '2025-08-01'  # 使用标准日期格式
end_date = '2025-08-31 23:59:59'    # 函数内部会自动添加时间部分
df=query_month_journal



def index():
    return rx.hstack(
        rx.data_table(
            data=df.to_pandas()
    )
app = rx.App()
app.add_page(index)